Parchear usuario
https://api.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.us3.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.us5.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.datadoghq.eu/api/v2/scim/Users/{user_uuid}https://api.ap1.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.ap2.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.uk1.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.ddog-gov.com/api/v2/scim/Users/{user_uuid}https://api.us2.ddog-gov.com/api/v2/scim/Users/{user_uuid}Descripción general
Parchea el usuario con el user_uuid dado.
Argumentos
Parámetros de ruta
user_uuid [required]None
Solicitud
Body Data (required)
OperationsObjeto de solicitud para parchear un usuario.
opThe operation to be performed.
add, replacepathAn attribute path describing the target of the operation.
valueNew value to use for the patch operation. When path is roles, use an array of role objects with each role UUID in value.
schemasInput JSON Schemas
{
"Operations": [
{
"op": "string",
"path": "roles",
"value": [
"00000000-0000-0000-0000-000000000001"
]
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}Respuesta
OK
Definition of a user.
activeA Boolean value indicating the User's administrative status.
emailsEmail addresses for the user.
primaryBoolean indicating if this email is the primary email address.
typeThe type of email.
workvalueEmail addresses for the user.
idThe identifier of the resource. Not required when creating a user.
metaMetadata associated with a user.
createdThe date and time the user was created.
lastModifiedThe date and time the user was last changed.
locationURL identifying the resource.
resourceTypeType of resource.
nameThe components of user's real name
formattedThe full name, including all middle names, titles, and suffixes as appropriate, formatted for display.
rolesDatadog roles assigned to the user. Provide the role UUID in value when provisioning or updating roles through SCIM.
displayHuman-readable Datadog role name returned in responses.
value [required]Datadog role UUID.
schemasUser JSON Schemas.
titleThe user's title.
userNameUnique identifier for the User.
{
"active": false,
"emails": [
{
"primary": false,
"type": "string",
"value": "string"
}
],
"id": "string",
"meta": {
"created": "2024-10-17 12:53:35.793883+00:00",
"lastModified": "2024-10-19 12:53:35.793883+00:00",
"location": "https://app.datadoghq.com/api/scim/v2/Users/13a95654-b76d-478d-8636-157a7e461d7c",
"resourceType": "User"
},
"name": {
"formatted": "string"
},
"roles": [
{
"display": "Datadog Read Only Role",
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "string",
"userName": "string"
}Bad Request
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Forbidden
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Not Found
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Ejemplo de código
## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PATCH "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"Operations": [
{
"op": "replace",
"path": "title",
"value": "CEO"
},
{
"op": "replace",
"path": "roles",
"value": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
]
},
{
"op": "replace",
"value": {
"name": {
"formatted": "John Doe"
}
}
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
EOF