Skip to content

Latest commit

 

History

History
124 lines (78 loc) · 3.46 KB

ContactApi.md

File metadata and controls

124 lines (78 loc) · 3.46 KB

ContactApi

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
create_contacts POST /customer/{customer_id}/contacts Add a new customer contact
delete_contact DELETE /customer/{customer_id}/contact/{contact_id} Delete a contact
list_contacts GET /customer/{customer_id}/contacts List contacts

create_contacts

Create a contact.

let cfg = &Configuration::default();
let params = CreateContactsParams {
    // parameters
};
create_contacts(cfg, params)

Parameters

Name Type Description Required Notes
customer_id String Alphanumeric string identifying the customer. [required]
user_id Option<String> The alphanumeric string representing the user for this customer contact.
contact_type Option<String> The type of contact.
name Option<String> The name of this contact, when user_id is not provided.
email Option<String> The email of this contact, when a user_id is not provided.
phone Option<String> The phone number for this contact. Required for primary, technical, and security contact types.
customer_id2 Option<String> The alphanumeric string representing the customer for this customer contact.

Return type

crate::models::ContactResponse

Authorization

token

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

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

delete_contact

Delete a contact.

let cfg = &Configuration::default();
let params = DeleteContactParams {
    // parameters
};
delete_contact(cfg, params)

Parameters

Name Type Description Required Notes
customer_id String Alphanumeric string identifying the customer. [required]
contact_id String An alphanumeric string identifying the customer contact. [required]

Return type

crate::models::InlineResponse200

Authorization

token

HTTP request headers

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

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

list_contacts

List all contacts from a specified customer ID.

let cfg = &Configuration::default();
let params = ListContactsParams {
    // parameters
};
list_contacts(cfg, params)

Parameters

Name Type Description Required Notes
customer_id String Alphanumeric string identifying the customer. [required]

Return type

Vec<crate::models::SchemasContactResponse>

Authorization

token

HTTP request headers

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

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