/asset-management/v1/site-partner-users/{sitePartnerUserId}/archive
Archives a site partner user by ID if it exists and if the user is associated with the current network. This will set isArchived field to true.
This action is not enabled by default. You must request additional permissions to perform this action.
sitePartnerUserId
string
required
The ID of the site partner user to be archived
Site partner user deleted successfully.
Empty response
/asset-management/v1/site-partner-users
This endpoint retrieves a list of all Site Partner Users
limit
string
The maximum number of site partner users to return (default 20, maximum 100)
startingAfter
string
The ID of the last site partner user in the previous page of results. Results will start after this site partner user
A list of site partner users
{
"data": {
"hasMore": true,
"items": [
{
"id": "string",
"email": "string",
"network": {
"id": "string"
},
"partner": {
"id": "string"
},
"firstName": "string",
"lastName": "string",
"isArchived": true,
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
]
}
}
/asset-management/v1/site-partner-users
This endpoint creates a new site partner user
This action is not enabled by default. You must request additional permissions to perform this action.
email
string or null
required
If the email is null that means tha site partner user has been archived
partner
string
required
The ID of the partner associated with the user
firstName
string
The first name of the site partner user
lastName
string
The last name of the site partner user
{
"email": "string",
"partner": "string",
"firstName": "string",
"lastName": "string"
}
Success
{
"data": {
"id": "string",
"email": "string",
"network": {
"id": "string"
},
"partner": {
"id": "string"
},
"firstName": "string",
"lastName": "string",
"isArchived": true,
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}
/asset-management/v1/site-partner-users/{sitePartnerUserId}
This endpoint updates an existing site partner user by its ID.
This action is not enabled by default. You must request additional permissions to perform this action.
email
string
The email of the site partner user
firstName
string
The first name of the site partner user
lastName
string
The last name of the site partner user
{
"email": "string",
"firstName": "string",
"lastName": "string"
}
Success. Returns the updated site partner user.
{
"data": {
"id": "string",
"email": "string",
"network": {
"id": "string"
},
"partner": {
"id": "string"
},
"firstName": "string",
"lastName": "string",
"isArchived": true,
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}
Was this page helpful?