Save credentials
const url = 'https://example.com/v1/example/integrations/multiset/credentials/project';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"clientID":"example","clientSecret":"example","endpoint":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/v1/example/integrations/multiset/credentials/project \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "clientID": "example", "clientSecret": "example", "endpoint": "example" }'Saves credentials for the space or its workspace, replacing any already saved there. Anyone with access to the space can save its workspace’s credentials.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The project ID of the space
The service the credentials are for
Whether the credentials are for this space, or for every space in its workspace
Request Bodyrequired
Section titled “Request Bodyrequired”object
The MultiSet API, if not https://api.multiset.ai/v1/. Only MultiSet’s own addresses are allowed.
object
The Matterport graph API, if not https://api.matterport.com/api/models/graph. Only Matterport’s own addresses are allowed.
Example generated
{ "clientID": "example", "clientSecret": "example", "endpoint": "example"}Responses
Section titled “Responses”What’s now saved
object
Credentials saved for the space or its workspace, as far as they can be described without giving them away.
object
Whether credentials are saved.
The API they’re used with.
The first four characters of the client or token id, to tell which is saved.
When they were saved, in milliseconds since the Unix epoch. Not known for credentials saved before it was recorded.
Credentials saved for the space or its workspace, as far as they can be described without giving them away.
object
Whether credentials are saved.
The API they’re used with.
The first four characters of the client or token id, to tell which is saved.
When they were saved, in milliseconds since the Unix epoch. Not known for credentials saved before it was recorded.
Which credentials are used: the space’s own ahead of the workspace’s, or none.
Example
{ "project": { "idHint": "a1b2…" }, "workspace": { "idHint": "a1b2…" }, "active": "project"}The body is invalid (invalidBody), or endpoint isn’t one of the provider’s (invalidEndpoint)
object
A description of the error
A stable identifier for the kind of error
For invalidBody: what failed validation, and where
object
Example generated
{ "error": "example", "code": "example", "issues": [ {} ]}The token is missing or invalid.
object
A description of the error
A stable identifier for the kind of error
For invalidBody: what failed validation, and where
object
Example generated
{ "error": "example", "code": "example", "issues": [ {} ]}The token has no access to this space.
object
A description of the error
A stable identifier for the kind of error
For invalidBody: what failed validation, and where
object
Example generated
{ "error": "example", "code": "example", "issues": [ {} ]}No item has this id.
object
A description of the error
A stable identifier for the kind of error
For invalidBody: what failed validation, and where
object
Example generated
{ "error": "example", "code": "example", "issues": [ {} ]}The body isn’t in a format this operation accepts.
object
A description of the error
A stable identifier for the kind of error
For invalidBody: what failed validation, and where
object
Example generated
{ "error": "example", "code": "example", "issues": [ {} ]}Too many requests. Retry after Retry-After seconds.
object
A description of the error
A stable identifier for the kind of error
For invalidBody: what failed validation, and where
object
Example generated
{ "error": "example", "code": "example", "issues": [ {} ]}Headers
Section titled “Headers”Seconds to wait before retrying
Something upstream failed.
object
A description of the error
A stable identifier for the kind of error
For invalidBody: what failed validation, and where
object
Example generated
{ "error": "example", "code": "example", "issues": [ {} ]}The space is moving between servers. Retry after Retry-After seconds.
object
A description of the error
A stable identifier for the kind of error
For invalidBody: what failed validation, and where
object
Example generated
{ "error": "example", "code": "example", "issues": [ {} ]}Headers
Section titled “Headers”Seconds to wait before retrying
Something upstream timed out.
object
A description of the error
A stable identifier for the kind of error
For invalidBody: what failed validation, and where
object
Example generated
{ "error": "example", "code": "example", "issues": [ {} ]}