younifyd
Menu

Post Bulk Assign Users Job

Post Bulk Assign Users Job

POST/hubs/{hubId}/bulk-assign-users

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Post Bulk Assign Users Job action (under Hubs).
  3. Fill in the fields below, then reference the result from later steps as {{postBulkAssignUsersJob.response.data}}.

Request

Path parameters

hubIdstringrequired

Hub ID

Request body

Enter the body as JSON in the step's Body field.

selectionarray<object>
contentItemIdstring

ID of content item

assigneesarray<string>

Array of users to assign to content item

json
{
  "selection": [
    {
      "contentItemId": "00112233-4455-6677-8899-aabbccddeeff",
      "assignees": [
        "00112233445566778899aabb"
      ]
    }
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{postBulkAssignUsersJob.response.data.<field>}}.

idstring

ID

typestring

Type of job operation

statusstring

Status of Job

One ofCREATEDSTARTEDPARTIALFAILEDCOMPLETED

resultsobject
succeededarray<any>
failedarray<any>
createdDatestring (date-time)

Created Date

createdBystring (uuid)

Created by User Id

_linksobject

Resource HAL links

selfanyrequired
bulk-assign-usersanyrequired
json
{
  "id": "00112233-4455-6677-8899-aabbccddeeff",
  "type": "ASSIGN_USERS",
  "status": "CREATED",
  "results": {
    "succeeded": [
      null
    ],
    "failed": [
      null
    ]
  },
  "createdDate": "2019-01-01T00:00:00.000Z",
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "_links": {
    "self": null,
    "bulk-assign-users": null
  }
}

Need more? See the Amplience guide for connection setup and behaviour shared by every action.