Update Opportunity By Id
POST/ad/v1/opportunity/:opportunity_id
Update the opportunity with the given id. This will generate a new ad api token that is returned in the response header.
Request
Path Parameters
Possible values: non-empty
Header Parameters
Optional header to make calling the endpoint faster by not requiring a new token to be generated.
- application/json
Body
required
Possible values: [start, complete, abort]
An enumeration.
Possible values: [cancel, other]
An enumeration.
Number of seconds into the video when the abort happened
Responses
- 200
- 403
- 422
- 500
Successful Response
Response Headers
x-hz-ad-api-token
string
Provide this token to future requests for the same user to make their requests faster (as a new token doesn't need to be generated)
- application/json
- Schema
Schema
any
Error Codes:
-
auth_invalid_key_id- Invalid Authorization - Invalid Key ID in Access Token -
auth_invalid_version- Invalid Authorization - version -
auth_malformed_access- Invalid Authorization - malformed access token -
auth_not_jwt- Invalid Authorization -
auth_token_expired- Token is expired -
auth_token_format- Invalid Authorization - {} -
auth_token_invalid_claim- Token contained invalid claim value: {} -
auth_token_invalid_type- Invalid Authorization - Invalid Token Type -
auth_token_sig_invalid- Token Signature is invalid -
auth_token_unknown- Failed to parse token -
insufficient_permissions- Insufficient Permissions
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Internal Server Error
Response Headers
x-hz-ad-api-token
string
Provide this token to future requests for the same user to make their requests faster (as a new token doesn't need to be generated)