In this article you will learn how to retrieve and create contacts using the REST API.
GET- Contact
To retrieve existing contacts, specify the following information in Swagger:
- Click GET or Expand Operations to retrieve information.
- Specify the following details in the Parameters section.:
- ISM application URL
- User authtoken
- Slice token
- Web service user name and password - Click Try it out.
POST- Contact
To create a new contact, perform the following:
- Click POST to create information.
- Specify the following details in the Parameters section.:
- ISM application URL
- User authtoken
- Slice token
- Web service user name and password - Click the Example Value text box. The operations displayed in the text box will be copied to the Contact text box.
- Click Try it out.
The following information is displayed in the Example Value box.
Code Block- Contact Value { "ContactStatus": "string", "CreationTimestamp": "string", "CreationUserName": "string", "DisplayName": "string", "EmailAddress": "string", "EmployeeID": "string", "ExternalUserID": "string", "FamilyName": "string", "FirstName": "string", "IsAdmin": "string", "IsLoginEnabled": "string", "IsOutOfOffice": "string", "IsVIP": "string", "LastModTimestamp": "string", "LastModUserName": "string", "LocaleID": "string", "ManagerID": "string", "ManagerUserName": "string", "MdrElementID": "string", "MiddleName": "string", "NameTitle": "string", "NonTranslatedIsVIPEnabled": "string", "OrgName": "string", "Phone2": "string", "Phone3": "string", "Phone4": "string", "PhoneType2": "string", "PhoneType3": "string", "PhoneType4": "string", "PrimaryOrgHierarchicalPath": "string", "PrimaryOrganization": "string", "PrimaryOrganizationID": "string", "PrimaryPhone": "string", "PrimaryPhoneType": "string", "UserGroupList": "string", "UserGroupRoleList": "string", "UserID": "string", "UserLicenseType": "string", "UserLicenseTypeCode": "string", "UserLogin": "string", "UserOrgList": "string", "UserRoleList": "string", "UserType": "string" } |
---|
...