Rotate a store credential
PATCH
/v1/credentials/{id}
const url = 'https://api.extport.dev/api/v1/credentials/example';const options = { method: 'PATCH', headers: { cookie: 'extport_session=<extport_session>', 'Content-Type': 'application/json' }, body: '{"label":"example","expiresAt":"example","credentials":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.extport.dev/api/v1/credentials/example \ --header 'Content-Type: application/json' \ --cookie extport_session=<extport_session> \ --data '{ "label": "example", "expiresAt": "example", "credentials": "example" }'Same shape as adding one, except omitted or empty fields keep their current value — verified the same way, kept under the same id.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “ Responses ”OK
Media typeapplication/json
Not found
The store rejected the credentials