Use this API to update a custom attribute in OneLogin.
Resource URL
https://<subdomain>.onelogin.com/api/2/users/custom_attributes/:idHeader Parameters
Authorization required string | Set to Set The access token must have been generated using an API credential pair created using the scope required to call this API. This API can be called using any one of the following scopes: |
Content-Type required string | Set to application/json. |
Resource Parameter
id required integer | Set to the |
Request Parameters
| name required | string | A descriptive name for the custom field. |
| shortname required | string | A unique identifier for the custom field. |
Sample Request Body
{
"position": null,
"name": "Custom Field",
"shortname": "newshortname",
"id": 105927
}Postman Collection
Replace sample variables indicated by < > in the sample request body with your actual values. Also, be sure to set Postman-specific environment variables indicated by {{ }}.
Have a Question?
Found a problem or a bug? Submit a support ticket.
Looking for walkthroughs or how-to guides? Check out our Knowledge Base.
Have a product idea or request? Share it in our Ideas Portal.