Update a user
/v2/scim/2.0/Users/{id} Connection and access
API connection and authentication guidance
https://hub.docker.com
—
Docker HUB API
Use one of these alternatives. Requirements within an alternative apply together.
scimToken
Parameters
id
path
Required
Type:
string
All schema constraints and annotations
{
"type": "string"
}Request and responses
Request
application/scim+json
Type:
object
active
Type:
boolean
All schema constraints and annotations
{
"default": false,
"description": "Whether the user is active. Defaults to false when omitted.",
"type": "boolean"
}name
Schema:
scim_user_name
schemas
· required
Schema:
scim_user_schemas
userName
· required
Schema:
scim_user_username
All schema constraints and annotations
{
"examples": [
{
"active": true,
"name": {
"familyName": "Snow",
"givenName": "Jon"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "jon.snow@docker.com"
}
],
"properties": {
"active": {
"default": false,
"description": "Whether the user is active. Defaults to false when omitted.",
"type": "boolean"
},
"name": {
"$ref": "#/components/schemas/scim_user_name"
},
"schemas": {
"$ref": "#/components/schemas/scim_user_schemas"
},
"userName": {
"$ref": "#/components/schemas/scim_user_username"
}
},
"required": [
"schemas",
"userName"
],
"type": "object"
}Schema example
{
"active": true,
"name": {
"familyName": "Snow",
"givenName": "Jon"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "jon.snow@docker.com"
}Response
200
application/scim+json
Schema:
scim_user
Schema example
{
"active": true,
"displayName": "jonsnow",
"emails": [
{
"display": "jon.snow@docker.com",
"primary": true,
"value": "jon.snow@docker.com"
}
],
"groups": [
{
"display": "nightswatch",
"value": "nightswatch"
}
],
"id": "d80f7c79-7730-49d8-9a41-7c42fb622d9c",
"meta": {
"created": "2022-05-20T00:54:18Z",
"lastModified": "2022-05-20T00:54:18Z",
"location": "https://hub.docker.com/v2/scim/2.0/Users/d80f7c79-7730-49d8-9a41-7c42fb622d9c",
"resourceType": "User"
},
"name": {
"familyName": "Snow",
"givenName": "Jon"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "jon.snow@docker.com"
}Response
400
application/scim+json
All constraints apply
Schema:
scim_error
scimType
Type:
string
All schema constraints and annotations
{
"description": "Some types of errors will return this per the specification.",
"type": "string"
}status
All schema constraints and annotations
{
"example": "400"
}All schema constraints and annotations
{
"properties": {
"scimType": {
"description": "Some types of errors will return this per the specification.",
"type": "string"
},
"status": {
"example": "400"
}
}
}All schema constraints and annotations
{
"allOf": [
{
"$ref": "#/components/schemas/scim_error"
},
{
"properties": {
"scimType": {
"description": "Some types of errors will return this per the specification.",
"type": "string"
},
"status": {
"example": "400"
}
}
}
]
}error
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "400"
}Response
401
application/scim+json
All constraints apply
Schema:
scim_error
status
All schema constraints and annotations
{
"example": "401"
}All schema constraints and annotations
{
"properties": {
"status": {
"example": "401"
}
}
}All schema constraints and annotations
{
"allOf": [
{
"$ref": "#/components/schemas/scim_error"
},
{
"properties": {
"status": {
"example": "401"
}
}
}
]
}error
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "401"
}Response
403
application/scim+json
All constraints apply
Schema:
scim_error
status
All schema constraints and annotations
{
"example": "403"
}All schema constraints and annotations
{
"properties": {
"status": {
"example": "403"
}
}
}All schema constraints and annotations
{
"allOf": [
{
"$ref": "#/components/schemas/scim_error"
},
{
"properties": {
"status": {
"example": "403"
}
}
}
]
}error
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "403"
}Response
404
application/scim+json
All constraints apply
Schema:
scim_error
status
All schema constraints and annotations
{
"example": "404"
}All schema constraints and annotations
{
"properties": {
"status": {
"example": "404"
}
}
}All schema constraints and annotations
{
"allOf": [
{
"$ref": "#/components/schemas/scim_error"
},
{
"properties": {
"status": {
"example": "404"
}
}
}
]
}error
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "404"
}Response
409
application/scim+json
All constraints apply
Schema:
scim_error
status
All schema constraints and annotations
{
"example": "409"
}All schema constraints and annotations
{
"properties": {
"status": {
"example": "409"
}
}
}All schema constraints and annotations
{
"allOf": [
{
"$ref": "#/components/schemas/scim_error"
},
{
"properties": {
"status": {
"example": "409"
}
}
}
]
}error
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "409"
}Response
500
application/scim+json
All constraints apply
Schema:
scim_error
status
All schema constraints and annotations
{
"example": "500"
}All schema constraints and annotations
{
"properties": {
"status": {
"example": "500"
}
}
}All schema constraints and annotations
{
"allOf": [
{
"$ref": "#/components/schemas/scim_error"
},
{
"properties": {
"status": {
"example": "500"
}
}
}
]
}error
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "500"
}Referenced schemas
Complete operation contract
{
"description": "Updates a user. This route is used to change the user's name, activate, and deactivate the user.\n",
"operationId": "putV2Scim20UsersById",
"requestBody": {
"$ref": "#/components/requestBodies/scim_update_user_request"
},
"responses": {
"200": {
"$ref": "#/components/responses/scim_update_user_resp"
},
"400": {
"$ref": "#/components/responses/scim_bad_request"
},
"401": {
"$ref": "#/components/responses/scim_unauthorized"
},
"403": {
"$ref": "#/components/responses/scim_forbidden"
},
"404": {
"$ref": "#/components/responses/scim_not_found"
},
"409": {
"$ref": "#/components/responses/scim_conflict"
},
"500": {
"$ref": "#/components/responses/scim_error"
}
},
"security": [
{
"scimToken": []
}
],
"summary": "Update a user",
"tags": [
"scim"
]
}