Skip to main content

User

GET Users#

Get all user.

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/organizations/{organizationId}/users
HeadersAuthorization
ParametersprojectId, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{organizationId}Yesstring($uuid)v1The identifier of organization

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
organizationIdYesstring($uuid)v1The identifier of organization
PageIndexNointeger($int32)0
PageSizeNointeger($int32)10
SearchNostring"string"

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "email": "string",      "name": "string",      "lastname": "string",      "role": "string"    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of user project
emailstring"string"Returns the email of user that created project
namestring"string"Returns the name of user that created project
lastnamestring"string"Returns the lastname of user that created project
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the default identifier of organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the default identifier of project
rolestring"string"Returns the role of user project
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

POST User#

Add or invite a user to the organization.

POST
MethodPOST
URL or EndPoint/api/v{version}/organizations/{organizationId}/users
HeadersAuthorization
ParametersorganizationId, version
Body{ email, roleId }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
organizationsYesstring($uuid)v1Directs to the organizations
{organizationId}Yesstringv1The identifier for the organization
usersYesstringv1Directs to the users

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
organizationIdYesstring($uuid)v1The identifier for the organization

Request body#

{  "email": "string",  "roleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
emailYesstring"string"Sends the email of user
roleIdYesstring"string"Sends the role identifier of the user for the following project

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "email": "string",    "name": "string",    "lastname": "string",    "defaultOrganizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "defaultProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "role": {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "name": "string",      "description": "string",      "isDefault": true,      "permissionCount": 0    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"string"Returns the identifier of role
emailstring"string"Returns the email of the user
namestring"string"Returns the name of user
lastnamestring"string"Returns lastname of user
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of the organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of project
rolesarray [object]Returns an object of project's user role
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of role
namestring"string"Returns the name of user role
descriptionstring"string"Returns the description of user
isDefaultbooltrue
permissionCountinteger($int32)0
typestring"string"Returns the type of role
titlestring"string"Returns the title of role
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET User#

Get user by id

GET
MethodGET
URL or EndPoint/api/v{version}/organizations/{organizationId}/users/{userId}
HeadersAuthorization
ParametersorganizationId , version, userId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{organizationId}Yesstring($uuid)v1The identifier for the organization
{userId}Yesstring($uuid)v1The identifier for the user

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
userIdYesstring($uuid)v1The identifier for the user
organizationIdYesstring($uuid)v1The identifier for the organization

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "email": "string",    "name": "string",    "lastname": "string",    "defaultOrganizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "defaultProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "role": {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "name": "string",      "description": "string",      "isDefault": true,      "permissionCount": 0    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"string"Returns the identifier of role
emailstring"string"Returns the email of the user
namestring"string"Returns the name of user
lastnamestring"string"Returns lastname of user
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of the organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of project
rolesarray [object]Returns an object of project's user role
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of role
namestring"string"Returns the name of user role
descriptionstring"string"Returns the description of user
isDefaultbooltrue
permissionCountinteger($int32)0
typestring"string"Returns the type of role
titlestring"string"Returns the title of role
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

PUT User#

Update user role in the organization

PUT
MethodPUT
URL or EndPoint/api/v{version}/organizations/{organizationId}/users/{userId}
HeadersAuthorization
ParametersorganizationId, version, userId
Body{ roleId }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
organizationsYesstring($uuid)v1Directs to the organizations
{organizationId}Yesstringv1The identifier for the organization
usersYesstringv1Directs to the users
{userId}Yesstringv1The identifier for the user

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
organizationIdYesstring($uuid)v1The identifier for the organization
userIdYesstringv1The identifier for the user

Request body#

{  "roleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
roleIdYesstring"string"Sends the role identifier of the user for the following project

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "email": "string",    "name": "string",    "lastname": "string",    "defaultOrganizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "defaultProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "role": {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "name": "string",      "description": "string",      "isDefault": true,      "permissionCount": 0    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"string"Returns the identifier of role
emailstring"string"Returns the email of the user
namestring"string"Returns the name of user
lastnamestring"string"Returns lastname of user
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of the organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of project
rolesarray [object]Returns an object of project's user role
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of role
namestring"string"Returns the name of user role
descriptionstring"string"Returns the description of user
isDefaultbooltrue
permissionCountinteger($int32)0
typestring"string"Returns the type of role
titlestring"string"Returns the title of role
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

DELETE User#

Remove user from the organization

DELETE
MethodDELETE
URL or EndPoint/api/v{version}/organizations/{organizationId}/users/{userId}
HeadersAuthorization
ParametersorganizationId, version, userId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
organizationsYesstring($uuid)v1Directs to the organizations
{organizationId}Yesstringv1The identifier for the organization
usersYesstringv1Directs to the users
{userId}Yesstringv1The identifier for the user

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
organizationIdYesstring($uuid)v1The identifier for the organization
userIdYesstringv1The identifier for the user

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "email": "string",    "name": "string",    "lastname": "string",    "defaultOrganizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "defaultProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "role": {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "name": "string",      "description": "string",      "isDefault": true,      "permissionCount": 0    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"string"Returns the identifier of role
emailstring"string"Returns the email of the user
namestring"string"Returns the name of user
lastnamestring"string"Returns lastname of user
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of the organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of project
rolesarray [object]Returns an object of project's user role
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of role
namestring"string"Returns the name of user role
descriptionstring"string"Returns the description of user
isDefaultbooltrue
permissionCountinteger($int32)0
typestring"string"Returns the type of role
titlestring"string"Returns the title of role
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

Get User Permission#

Checks if user has specific permission

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/users/{globalId}/permissions/{permission}
HeadersAuthorization
ParametersprojectId, globalId, permission, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)v1The identifier for the project
{globalId}Yesstring($uuid)v1The identifier for the user
{permission}Yesstring($uuid)v1The permission for the user

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
projectIdYesstring($uuid)v1The identifier for the project
globalIdYesstringv1The identifier for the user
permissionYesstringv1The permission for the user

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",  "permission": true,  "organizationIds": [    "3fa85f64-5717-4562-b3fc-2c963f66afa6"  ]}
Field NameTypeExampleDescription
userIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of user
permissionbooltrueReturns true if user has permission
organizationIdsstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of organization

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found