The Update SCIM operation updates existing group/members in Condeco based on the values provided. PUT can be used to update all group attributes, whilst PATCH can be used to update partial group attributes.

Examples:

  1. Update with PUT
  2. Update with PATCH – Request to add members
  3. Update with PATCH – Request to remove members
  4. Update with PATCH – Request to replace members

Update example 1

Update with PUT

Request

PUT "https://<CONDECO-SCIM-Domain>/scim/api/V1/groups/G602"
{
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
        ],
    "externalId": "155fcf8c-c7a2-4145-af48-f018a10da88645",
    "displayName": "SCIMGroup",
    "meta": {
        "resourceType": "Group"
    },
    "members":[{
    "value":"265"
    },
    {
    "value":"267"
    }]  
}

Response

HTTP/1.1 200 OK

{
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
    ],
    "id": "G602",
    "externalId": "155fcf8c-c7a2-4145-af48-f018a10da88645",
    "meta": {
        "resourceType": "Group",
        "created": "2021-03-09T12:56:46.077",
        "location": "https://<CONDECO-SCIM-Domain>/scim/api/V1/groups/G602"
    },
    "displayName": "SCIMGroup"
}

Update example 2

Update with PATCH – Request to update displayName

Request

PATCH "https://<CONDECO-SCIM-Domain>/scim/api/V1/groups/G603"
{
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
        ],
    "externalId": "155fcf8c-c7a2-4145-af48-f018a10da88649",
    "displayName": "SCIMGroup",
    "meta": {
        "resourceType": "Group"
    }
}

Response

HTTP/1.1 204 No Content

Update example 3

Update with PATCH – Request to remove members

Request

PATCH "https://<CONDECO-SCIM-Domain>/scim/api/V1/groups/G603"
{
     "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:PatchOp"
        ],
     "Operations":[ 
      {
       "op":"remove",
       "path":"members[value eq \"260\" and value eq \"248\"]"
     }
    ]
}

Response

HTTP/1.1 204 No Content

Update example 4

Update with PATCH – Request to replace members

Request

PATCH "https://<CONDECO-SCIM-Domain>/scim/api/V1/groups/G603"
{
     "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:PatchOp"
        ],
     "Operations":[ 
      {
         "op":"replace",
         "path":"members",
         "value":[
         {
           "value": "45"
         }]
       }
    ]
}

Response

HTTP/1.1 204 No Content

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Please do not use this for support questions.
Condeco Support

Post Comment