Attributes - Amazon Pinpoint

Attributes

An attribute is a characteristic of a user or an endpoint. It can be a standard attribute that Amazon Pinpoint defines or a custom attribute that you define. For example, you might create custom attributes that capture your users' contact information, their preferences, and the dates when they opted in or out of receiving specific types of messages from you.

The Attributes resource represents custom attributes that you've defined for users and endpoints that are associated with a specific application. You can use this resource to remove one or more custom attributes from the Amazon Pinpoint application. Existing endpoints continue to persist these attributes and these existing values continue to appear on the Amazon Pinpoint console and in export jobs. However, Amazon Pinpoint stops capturing new or changed values for a custom attribute. For information about the attributes that you can use to define an endpoint, see the Endpoint resource.

To retrieve a list of custom attributes and attribute values for a specific user, use the User resource. To add or retrieve custom attributes and attribute values for endpoints, use the Endpoints or Endpoint resource.

URI

/v1/apps/application-id/attributes/attribute-type

HTTP methods

PUT

Operation ID: RemoveAttributes

Removes one or more custom attributes, of the same attribute type, from the application. Existing endpoints still have the attributes but Amazon Pinpoint will stop capturing new or changed values for these attributes.

Path parameters
NameTypeRequiredDescription
attribute-typeStringTrue

The type of attribute or attributes to remove. Valid values are:

  • endpoint-custom-attributes – Custom attributes that describe endpoints, such as the date when an associated user opted in or out of receiving communications from you through a specific type of channel.

  • endpoint-metric-attributes – Custom metrics that your app reports to Amazon Pinpoint for endpoints, such as the number of app sessions or the number of items left in a cart.

  • endpoint-user-attributes – Custom attributes that describe users, such as first name, last name, and age.

application-idStringTrue

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Header parameters
NameTypeRequiredDescription
acceptStringFalse

Indicates which content types, expressed as MIME types, the client understands.

Responses
Status codeResponse modelDescription
200AttributesResource

The request succeeded.

400MessageBody

The request contains a syntax error (BadRequestException).

403MessageBody

The request was denied because access to the specified resource is forbidden (ForbiddenException).

404MessageBody

The request failed because the specified resource was not found (NotFoundException).

405MessageBody

The request failed because the method is not allowed for the specified resource (MethodNotAllowedException).

413MessageBody

The request failed because the payload for the body of the request is too large (RequestEntityTooLargeException).

429MessageBody

The request failed because too many requests were sent during a certain amount of time (TooManyRequestsException).

500MessageBody

The request failed due to an unknown internal server error, exception, or failure (InternalServerErrorException).

OPTIONS

Retrieves information about the communication requirements and options that are available for the Attributes resource.

Path parameters
NameTypeRequiredDescription
attribute-typeStringTrue

The type of attribute or attributes to remove. Valid values are:

  • endpoint-custom-attributes – Custom attributes that describe endpoints, such as the date when an associated user opted in or out of receiving communications from you through a specific type of channel.

  • endpoint-metric-attributes – Custom metrics that your app reports to Amazon Pinpoint for endpoints, such as the number of app sessions or the number of items left in a cart.

  • endpoint-user-attributes – Custom attributes that describe users, such as first name, last name, and age.

application-idStringTrue

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Responses
Status codeResponse modelDescription
200None

The request succeeded.

Schemas

Request bodies

{ "Blacklist": [ "string" ] }

Response bodies

{ "ApplicationId": "string", "AttributeType": "string", "Attributes": [ "string" ] }
{ "RequestID": "string", "Message": "string" }

Properties

AttributesResource

Provides information about the type and the names of attributes that were removed from all the endpoints that are associated with an application.

PropertyTypeRequiredDescription
ApplicationId

string

True

The unique identifier for the application.

Attributes

Array of type string

False

An array that specifies the names of the remaining attributes after any attributes were removed from the endpoints.

AttributeType

string

True

The type of attribute or attributes that were removed from the endpoints. Valid values are:

  • endpoint-custom-attributes – Custom attributes that describe endpoints.

  • endpoint-metric-attributes – Custom metrics that your app reports to Amazon Pinpoint for endpoints.

  • endpoint-user-attributes – Custom attributes that describe users.

MessageBody

Provides information about an API request or response.

PropertyTypeRequiredDescription
Message

string

False

The message that's returned from the API.

RequestID

string

False

The unique identifier for the request or response.

UpdateAttributesRequest

Specifies one or more attributes to remove from all the endpoints that are associated with an application.

PropertyTypeRequiredDescription
Blacklist

Array of type string

False

An array of the attributes to remove from all the endpoints that are associated with the application. The array can specify the complete, exact name of each attribute to remove or it can specify a glob pattern that an attribute name must match in order for the attribute to be removed.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

RemoveAttributes