Przejdź do głównej zawartości

Zaktualizuj połączenie

PUT
/api/v3/Connections/{id}
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Connections/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "connectionType": "example", "externalSourceType": "example", "externalSourceTypeName": "example", "externalSourceId": "example", "isConfigured": true, "id": 1 }'

Zmienia konfigurację istniejącej integracji. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych.

id
wymagane
integer format: int64
Typ treściapplication/json
object
name
string
nullable
connectionType
string
nullable
externalSourceType
string
nullable
externalSourceTypeName
string
nullable
externalSourceId
string
nullable
isConfigured
boolean
nullable
id
integer format: int64
nullable
Examplegenerated
{
"name": "example",
"connectionType": "example",
"externalSourceType": "example",
"externalSourceTypeName": "example",
"externalSourceId": "example",
"isConfigured": true,
"id": 1
}

Success

Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
scope
string
nullable
scopeValue
string
nullable
silentMode
boolean
ajsChainId
string
nullable
ajsChainVisits
string
nullable
Example
{
"status": "New"
}

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Unauthorized

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}