updateUser

This API command and its parameters support the request to update the user in the system.

Command

GET https://portalapi.commerce.ondemand.com/scim/v3/users/{userId}

Parameters

Name Required Description

scimBody

object

(body)

No

This field contains information about the user.

Example Value | Model

{}
  

userId

string

(path)

No User ID of the user.

Responses

Code Description
200 Notified

Example Value | Model

{
  "active": true,
  "addresses": [
    {
      "$ref": "https://example.com/v2/Users/902c246b-6245-4190-8e05-00816be7344a",
      "country": "USA",
      "display": "Babs Jensen",
      "formatted": "100 Universal City Plaza\nHollywood, CA 91608 USA",
      "locality": "Hollywood",
      "operation": "add or remove",
      "postalCode": "91608",
      "primary": true,
      "region": "CA",
      "streetAddress": "100 Universal City Plaza",
      "type": "'work' or 'home'.",
      "value": "email address, phonenumber."
    }
  ],
  "displayName": "Babs Jensen",
  "emails": "mj@example.com",
  "externalId": "701984",
  "groups": [
    {
      "$ref": "https://example.com/v2/Users/902c246b-6245-4190-8e05-00816be7344a",
      "display": "Babs Jensen",
      "operation": "add or remove",
      "primary": true,
      "type": "User or Group",
      "value": "email address, phonenumber."
    }
  ],
  "id": "2819c223-7f76-453a-919d-413861904646",
  "meta": {
    "attributes": "",
    "created": "2022-11-05T16:58:29+0000",
    "lastModified": "2022-11-05T16:58:29+0000",
    "location": "/uri/users/{uid}",
    "resourceType": "group",
    "version": "2"
  },
  "name": {
    "familyName": "Jensen' given the full name 'Ms. Barbara Jane Jensen, III",
    "formatted": "Ms. Barbara Jane Jensen, III",
    "givenName": "Barbara' given the full name 'Ms. Barbara Jane Jensen, III",
    "honorificPrefix": "Ms.' given the full name 'Ms. Barbara Jane Jensen, III",
    "honorificSuffix": "III' given the full name 'Ms. Barbara Jane Jensen, III",
    "middleName": "Jane' given the full name 'Ms. Barbara Jane Jensen, III"
  },
  "nickName": "MJ",
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:User"
  ],
  "userName": "mj@example.com",
  "userType": "Employee"
}
201 Created
400 Bad Request

Example Value | Model

{
  "errorCode": "string",
  "exceptionMessage": "string",
  "language": "English",
  "message": "string",
  "position": 1,
  "reason": "string",
  "subject": "string",
  "subjectType": "string",
  "type": "string"
}
401 Unauthorized

Example Value | Model

{
  "errorCode": "string",
  "exceptionMessage": "string",
  "language": "English",
  "message": "string",
  "position": 1,
  "reason": "string",
  "subject": "string",
  "subjectType": "string",
  "type": "string"
}
403 Forbidden

Example Value | Model

{
  "errorCode": "string",
  "exceptionMessage": "string",
  "language": "English",
  "message": "string",
  "position": 1,
  "reason": "string",
  "subject": "string",
  "subjectType": "string",
  "type": "string"
}
404 Not Found

Example Value | Model

{
  "errorCode": "string",
  "exceptionMessage": "string",
  "language": "English",
  "message": "string",
  "position": 1,
  "reason": "string",
  "subject": "string",
  "subjectType": "string",
  "type": "string"
}
405 Method Not allowed

Example Value | Model

{
  "errorCode": "string",
  "exceptionMessage": "string",
  "language": "English",
  "message": "string",
  "position": 1,
  "reason": "string",
  "subject": "string",
  "subjectType": "string",
  "type": "string"
}
409 Conflict

Example Value | Model

{
  "errorCode": "string",
  "exceptionMessage": "string",
  "language": "English",
  "message": "string",
  "position": 1,
  "reason": "string",
  "subject": "string",
  "subjectType": "string",
  "type": "string"
}
500 Internal Server Error

Example Value | Model

{
  "errorCode": "string",
  "exceptionMessage": "string",
  "language": "English",
  "message": "string",
  "position": 1,
  "reason": "string",
  "subject": "string",
  "subjectType": "string",
  "type": "string"
}