Trimble Credentials

Form of a Trimble Credentials resource:

{
"status": "str",
"userName": "str",
"password": "str",
"applicationName": "str",
"serviceIdentityId": "str",
"scopes": ["str"]
}

Endpoints

DescriptionEndpoints
Get the Trimble credentialsGET /users/{leafUserId}/trimble-credentials
Create a Trimble credentialsPOST /users/{leafUserId}/trimble-credentials
Delete Trimble credentialsDELETE /users/{leafUserId}/trimble-credentials

Trimble Credentials Endpoints

Get the Trimble credentials

 GET /users/{leafUserId}/trimble-credentials
Get the Trimble credentials of the Leaf User based on its idand returns a JSON with the credentials.

Request examples

curl -X GET \
-H 'Authorization: Bearer YOUR_TOKEN' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/trimble-credentials'

Response

A Trimble credentials resource as a JSON.

Create a Trimble credentials

 POST /users/{leafUserId}/trimble-credentials

Create a Trimble credentials for the Leaf User.

Request examples

A Trimble credentials.

{
"userName": "str",
"password": "str",
"applicationName": "str",
"serviceIdentityId": "str"
}
curl -X POST \
-H 'Authorization: Bearer YOUR_TOKEN' \
-d '{"userName": "str","password": "str","applicationName": "str","serviceIdentityId": "str"}'
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/trimble-credentials'

Response

A Trimble credentials with status.

Delete Trimble credentials

 DELETE /users/{leafUserId}/trimble-credentials

Delete a Leaf User's Trimble credentials.

Request examples

curl -X DELETE \
-H 'Authorization: Bearer YOUR_TOKEN' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/trimble-credentials'

Troubleshooting

With these endpoints, you can do some troubleshooting to see your credential's health.

Events

 GET /users/{leafUserId}/trimble-credentials/events

Get the logs of the provider credential based on the LeafUserId sent.

Request examples

curl -X GET \
-H 'Authorization: Bearer YOUR_TOKEN' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}
/trimble-credentials/events'

Response

[
{
"body": "string",
"createdDate": "yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'",
"headers": "string",
"id": "string",
"statusCode": "int"
}
]
warning

The logs are available only for 30 days and once the credential is deleted or disassociated with the Leaf User, the logs are no longer available.