Skip to main content
PUT
https://integrations.projectcor.com
/
v2
/
user
/
user-position
curl --location --request PUT 'https://integrations.projectcor.com/v2/user/user-position' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "OKTA"
  },
  "users": [
    {
      "id": "OKTA-USER-12345",
      "position_id": "POS-DEV-001"
    },
    {
      "id": "OKTA-USER-67890",
      "position_id": "POS-PM-001"
    }
  ]
}'
{
  "message": "Users assigned to positions successfully",
  "assignments": [
    {
      "user_id": 8546,
      "position_id": 101,
      "status": "assigned"
    },
    {
      "user_id": 8547,
      "position_id": 102,
      "status": "assigned"
    }
  ]
}
Assigns multiple users to their respective positions in your COR instance. This endpoint allows batch assignment of users to positions.

Request Body Requirements

metadata
object
required
users
array
required
Array of user-position assignments

Known Errors

  • ValidationError — Missing required fields or empty users array
  • UserNotFoundError — One or more users not found with the specified external IDs
  • PositionNotFoundError — One or more positions not found with the specified external IDs
curl --location --request PUT 'https://integrations.projectcor.com/v2/user/user-position' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "OKTA"
  },
  "users": [
    {
      "id": "OKTA-USER-12345",
      "position_id": "POS-DEV-001"
    },
    {
      "id": "OKTA-USER-67890",
      "position_id": "POS-PM-001"
    }
  ]
}'
{
  "message": "Users assigned to positions successfully",
  "assignments": [
    {
      "user_id": 8546,
      "position_id": 101,
      "status": "assigned"
    },
    {
      "user_id": 8547,
      "position_id": 102,
      "status": "assigned"
    }
  ]
}