# Rest Api Contact Stage Change Problem

**URL:** <https://forum.mautic.org/t/rest-api-contact-stage-change-problem/7694>\
**Category:** Product Support\
**Created:** [February 27, 2017, 1:26am UTC](https://forum.mautic.org/t/rest-api-contact-stage-change-problem/7694 "2017-02-27T01:26:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tugberk](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tugberk](https://forum.mautic.org/u/tugberk)\
**Post date:** [February 27, 2017, 1:26am UTC](https://forum.mautic.org/t/rest-api-contact-stage-change-problem/7694/1 "2017-02-27T01:26:50Z")

</div>

Hi  
  
I am using Mautic rest api on a .net project. Everything works except updating stages. I use an url like this

Code:

https://MY\_URL/api/stages/4/contact/add/4065?access\_token=MY\_TOKEN

. It returns

Code:

"success": 1

, but update does not happen. I share the piece of the code that I use also.

Code:

 string apiResult = "";

```
        MauticContact mauticContact = GetContactByEmail(contactEmail);
        MauticStage mauticStage = GetStageByName(stageName);

        string uri = _mauticBaseUri + _apiUri + "/stages/" + mauticStage.Id + "/contact/" + "add"+ mauticContact.Id;

```

#if NET461  
using (WebClient client = new WebClient())  
{  
byte[] response =  
client.UploadValues(uri, new NameValueCollection()  
{  
{ “access\_token”, \_token}  
});

```
            apiResult = System.Text.Encoding.UTF8.GetString(response);
        }

```

#endif

As I said before apiResult is

Code:

"success": 1

but nothing happens.

---

<div class="post-metadata">

**Author:** ![tugberk](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tugberk](https://forum.mautic.org/u/tugberk)\
**Post date:** [February 27, 2017, 1:26am UTC](https://forum.mautic.org/t/rest-api-contact-stage-change-problem/7694/2 "2017-02-27T01:26:50Z")

</div>

Hi  
I am using Mautic rest api on a .net project. Everything works except updating stages. I use an url like this `https://MY_URL/api/stages/4/contact/add/4065?access_token=MY_TOKEN` . It returns `"success": 1`, but update does not happen. I share the piece of the code that I use also.

```auto
            string apiResult = "";

            MauticContact mauticContact = GetContactByEmail(contactEmail);
            MauticStage mauticStage = GetStageByName(stageName);

            string uri = _mauticBaseUri + _apiUri + "/stages/" + mauticStage.Id + "/contact/" + "add"+ mauticContact.Id;
#if NET461
            using (WebClient client = new WebClient())
            {
                byte[] response =
                client.UploadValues(uri, new NameValueCollection()
                {
                { "access_token", _token}
                });

                apiResult = System.Text.Encoding.UTF8.GetString(response);
            }
#endif
```

As I said before apiResult is `"success": 1` but nothing happens.
