v1

latestOpenAPI 3.1.02026-07-24170121.2 MB

Attach User

post/v1/users/{user_id}/attach

Path parameters

user_idstring required

Headers

Acceptstring required

Indicates which content types, expressed as MIME types, the client is able to understand.

Content-Typestring required

Indicates the media type of the resource sent in the HTTP message body. <br /><br /><b>Possible Values:</b><br /> application/json<br />application/x-www-form-urlencoded

Request body

account_idsstring[] required

IDs of accounts that the user should be attached to.

Response

200

Example response

{
  "data": {
    "object": "User",
    "id": "Z5pA1JZ465n1nV6J",
    "real_id": 26870,
    "name": "LIstPaymentNEWest",
    "email": "listpayment@payarc.com",
    "notification_phone_number": 1231231232,
    "created_at": 1706211057,
    "updated_at": 1729581069,
    "readable_created_at": "8 months ago",
    "readable_updated_at": "4 hours ago",
    "response_content": true,
    "username": "LIstPaymentNEW",
    "role": {
      "id": 1635,
      "name": "client-engagement-team",
      "guard_name": "api",
      "display_name": "Client Engagement Team (api)",
      "description": "Role that is equivalent to team",
      "created_at": "2024-01-15T14:19:41.000000Z",
      "updated_at": "2024-01-15T14:19:41.000000Z",
      "account_id": 24,
      "name_export": "client-engagement-team",
      "display_name_export": "Client Engagement Team (api)",
      "created_at_export": "2024-01-15 14:19:41",
      "role_id_export": "KmjRMaLLzRMaQEbz",
      "description_export": "Role that is equivalent to team",
      "pivot": {
        "model_id": 26870,
        "role_id": 1635,
        "model_type": "App\\Containers\\AppSection\\User\\Models\\User"
      }
    }
  },
  "meta": {
    "include": [
      "roles"
    ]
  }
}