PUT /profiles
Updated on
Updates a publisher's user profile. The resource expects a profileItem in the request body (see parameters) and returns a UpdateProfileResponse. You can find the definition of the response in the WSDL/XSD. Make sure you specify the XML namespace in the request body as shown in the example.
This resource requires connectid, nonce, date and signature for authentication. See Authentication documentation for REST and SOAP. Passing authentication information as query parameters is supported.
Resource URL
XML: https://api.zanox.com/xml/2011-03-01/profiles
JSON: https://api.zanox.com/json/2011-03-01/profiles
Parameters
callback | Supported if format is JSON. Returns the name of the JS function the result is wrapped in. |
profileItem | profileItem needs to be passed in request body with the information that needs to be updated in the profile. Note that certain fields are unable to be modified, including: loginName, userName, and email. Value type: xs:complexType, see element definition in WSDL/XSD |
Example Request
The authentication information in the request is expired and will result in authentication exception.
PUT URL:
https://api.zanox.com/xml/2011-03-01/profiles?connectid=802B8BF4AE99EBE00F41&date=Fri, 30 Aug 2013 11:33:52 GMT&nonce=C08B67F99179BC20825004A1187CCEB7&signature=WOj/S7l9zLY3l/OZNFL/Ws75/3A=
PUT Request body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <profileItem id="1398877" xmlns="http://api.zanox.com/namespace/2011-03-01/"> <street1>Mystreet 122</street1> </profileItem>
Example Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <UpdateProfileResponse> <profileItem id="1398877"> <adrank>0.0</adrank> <firstName>Firstname</firstName> <lastName>Lastname</lastName> <email>zx-ber-tm-qualitytesting@zanox.com</email> <country>DE</country> <street1>Mystreet 122</street1> <city>MyCity</city> <zipcode>12345</zipcode> <street2>My corner</street2> <mobile>49</mobile> <language>de_DE</language> <title>HERR_UND_FRAU</title> <loginName>TEST RND user 8</loginName> <userName>TEST RND user 8</userName> <isAdvertiser>false</isAdvertiser> <isSublogin>false</isSublogin> </profileItem> </UpdateProfileResponse>
Resource Information
Rate Limited? | No |
Authentication | Requires signature. See REST Authentication SOAP Authentication |
Response Formats | json, xml |
HTTP Methods | PUT |
Resource family | Profile |
Response Object | profileItem |
API Version | 2011-03-01 |