Skip to content

Latest commit

 

History

History
116 lines (74 loc) · 4.03 KB

AttributesApi.md

File metadata and controls

116 lines (74 loc) · 4.03 KB

sib_api_v3_sdk.AttributesApi

All URIs are relative to https://api.sendinblue.com/v3

Method HTTP request Description
CreateAttribute Post /contacts/attributes/{attributeCategory}/{attributeName} Create contact attribute
DeleteAttribute Delete /contacts/attributes/{attributeCategory}/{attributeName} Delete an attribute
GetAttributes Get /contacts/attributes List all attributes
UpdateAttribute Put /contacts/attributes/{attributeCategory}/{attributeName} Update contact attribute

CreateAttribute

CreateAttribute(ctx, body, attributeCategory, attributeName) Create contact attribute

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body CreateAttribute Values to create an attribute
attributeCategory string Category of the attribute
attributeName string Name of the attribute

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteAttribute

DeleteAttribute(ctx, attributeCategory, attributeName) Delete an attribute

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
attributeCategory string Category of the attribute
attributeName string Name of the existing attribute

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAttributes

GetAttributes GetAttributes(ctx, ) List all attributes

Required Parameters

This endpoint does not need any parameter.

Return type

GetAttributes

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateAttribute

UpdateAttribute(ctx, body, attributeCategory, attributeName) Update contact attribute

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body UpdateAttribute Values to update an attribute
attributeCategory string Category of the attribute
attributeName string Name of the existing attribute

Return type

(empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]