Project Users
List project users
This endpoint makes an HTTP GET request to retrieve a list of user for a project
Request
Method: GET
Endpoint:
https://api.creatopy.com/v1/project/users
curl --location 'https://api.creatopy.com/v1/project/users' \
--header 'Authorization: Bearer eyJh...'
Response
Upon a successful execution, the response will have a status code of 200 and a JSON content type. The response body will contain the following structure:
JSON
{
"response": [
{
"userId": 111111,
"teamId": 111,
"name": "User Name 1",
"url": null,
"email": "[email protected]",
"profilePicture": null,
"role": "Admin",
"teamRoleId": 1
},
{
"userId": 22222,
"teamId": 111,
"name": "User Name 2",
"url": null,
"email": "[email protected]",
"profilePicture": null,
"role": "Admin",
"teamRoleId": 1
},
]
}
Add User to Project
This endpoint allows you to add an user to a project.
Request
Method: POST
Endpoint:
https://api.creatopy.com/v1/project/users
Body:
userId
(integer, required): The id of the user.projectId
(integer, required): The id of the project where we want to add the user
Response
The response of this request can be documented as a JSON schema:
JSON
{
"response":
{
"status": "success"
}
}
Remove User from a Project
This endpoint allows you to remove an user from a project.
Request
Method: DELETE
Endpoint:
https://api.creatopy.com/v1/project/users
Body:
userId
(integer, required): The id of the user.projectId
(integer, required): The id of the project from where we want to remove the user
Response
{
"response":
{
"status": "success"
}
}
Last updated