Adobe  I/O Adobe Target

List offers

GET /{tenant}/target/offers
Retrieve the list of previously-created content offers. The parameters passed through the query string are optional and are used to indicate the sorting and filtering options.
RETURN TYPE
RESPONSES
200 OK
400 The request was invalid. Check the parameters list and try again
401 Unauthorized
403 Forbidden
404 Not Found
PARAMETERS
parametersMap (required) Query Parameter — Undefined

Create a new content offer

POST /{tenant}/target/offers/content
Creates a new content offer as defined by the request data.
REQUEST BODY
offer (required) Body Parameter — ContentOffer
RESPONSES
201 Created
400 Bad Request. Most probably the data provided in the request is invalid.
401 The user is not allowed to perform this operation.
403 Access to this resource is forbidden.
404 The referenced resource was not found.

Get offer by id

GET /{tenant}/target/offers/content/{id}
Retrieves the contents of an offer by providing it's id.
RETURN TYPE
RESPONSES
200 OK
400 Bad Request. Most probably the data provided in the request is invalid.
401 You are not authorized to perform this request
403 Access to this resource is forbidden.
404 The offer was not found or the offer type is different than "content"
PARAMETERS
id (required) Path Parameter — integer

Update a content offer by id

PUT /{tenant}/target/offers/content/{id}
Updates the content offer referenced by the id specified in the URL.
REQUEST BODY
offer (required) Body Parameter — ContentOffer
RETURN TYPE
RESPONSES
200 OK
201 Created
400 Bad Request. Most probably the data provided in the request is invalid.
401 The user is not allowed to perform this operation.
403 Access to this resource is forbidden.
404 The referenced resource was not found.
PARAMETERS
id (required) Path Parameter — integer

Delete a content offer by id

DELETE /{tenant}/target/offers/content/{id}
Deletes the content offer referenced by the provided id.
RETURN TYPE
RESPONSES
200 OK
400 Bad Request. Most probably the data provided in the request is invalid.
401 The user is not allowed to perform this operation.
204 No Content
403 Access to this resource is forbidden.
404 The referenced resource was not found.
PARAMETERS
id (required) Path Parameter — integer