Creating Workspace Members
Create members belonging to your workspace.
The create members endpoint allows you to create new members in your workspace.
Endpoint
Method | Url |
---|---|
POST | /v1.0/members |
Request Parameters
email
•
string
required
The member's unique email.
given_name
•
string
required
The member's given name.
family_name
•
string
required
The member's family name.
phone_number
•
string
The member's phone number.
Sample Request
Copied1curl -X POST 'https://api.worklayer.com/v1.0/members' \2-H 'Authorization: Bearer {token}' \3-d '{ "email": "tony@stark.com", "given_name": "Tony", "family_name": "Stark" }'
Response
An instance of member resource.
Sample Response
Copied1{2 "email": "tony@stark.com",3 "user_id": "a6e5ea2f-7d96-4852-9f46-2383dfd572f7",4 "create_time": "2022-04-11T15:18:00.701Z",5 "update_time": "2022-04-11T15:18:00.701Z",6 "custom_fields": []7}
Errors
Forbidden
: API Client cannot create members.Unauthorized
: API Client does not have valid credentials.BadRequest
: Either required properties are missing, or there was a malformed request.
Last updated on October 6, 2022
Privacy PolicyTerms & Conditions© 2024 Taxfyle