Add a store target
POST
/v1/extensions/{id}/targets
const url = 'https://api.extport.dev/api/v1/extensions/example/targets';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"store":"chrome","storeItemId":"example","crxId":"example","platforms":["example"],"credentialId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.extport.dev/api/v1/extensions/example/targets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "store": "chrome", "storeItemId": "example", "crxId": "example", "platforms": [ "example" ], "credentialId": "example" }'Verified against the live store API before saving — refuses a storeItemId the credential can’t actually see.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
store
required
string
storeItemId
required
string
crxId
string
platforms
Array<string>
credentialId
required
string
Responses
Section titled “Responses”Created
Not found
Already configured