Update Partner Login
This request updates a partner login, targeted by secure ID.
patch | /oauth/logins/{login_sid} |
put | /oauth/logins/{login_sid} |
Sample
A sample PATCH request to update the Partner Login object, targeted by secure ID, with the values in the request body:
curl -X PATCH \
'https://api.carrierx.com/core/v2/oauth/logins/abcf6b1f-7281-4da9-a4d6-3fb53e3a76de' \
-H 'Content-Type: application/json' \
--data-binary '{"password":"myNewStrongPassword"}' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'
Response
200
status code with a serialized copy of the updated Partner Login object:
{
"login": "carrierx_partner",
"login_sid": "abcf6b1f-7281-4da9-a4d6-3fb53e3a76de",
"partner_sid": "edebf627-ebce-4f77-8160-75db76154168",
"token_scopes": [
"partners.read",
"partners.update"
]
}
A Partner Login object can be updated using either a PATCH
or PUT
request.
-
A
PATCH
request can be used to update one or more attribute values. When using aPATCH
request, only the attributes specified in the request payload will be updated, all other attributes and values will remain the same. The partner login secure ID is passed in the query URL, and the values to be modified are passed in the request body. -
A
PUT
request can be used to update an entire Partner Login object. The partner login secure ID is passed in the query URL, and the entire Partner Login object is passed in the request body.
Note, while all the fields must be present in a PUT
request, not all the attribute values may be modified after the initial creation, because when created, some of them become read-only.
Required Scopes
To update a Partner Login object, the partner must have one of the following scopes enabled:
oauth.manage
oauth.update
Path Arguments
Parameter | Data Type | Description |
---|---|---|
login_sid required | string | The partner login secure ID. |
Body Arguments
JSON representation of the fields and values to be updated.
The field that can be modified is password
.
Refer to this table to view all fields that appear in the Partner Login object.