Favorite Contact

Prev Next
Post
/api/v1/contacts.favorite
Premium tag

Mark or unmark a personal contact as favorite. Works for local contacts and for Outlook contacts synced with the Microsoft Graph provider. Contacts synced with EWS keep their favorite state in Outlook, so this endpoint returns 404 with error-contact-not-found for those contacts.

Changelog

Version Description
9.1.0 Added
Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Body parameters
Example 1
{
  "contactId": "690c2b2d4e7e8bcf6985b3d8",
  "favorite": true
}
object
contactId
string Required

Enter the contact ID.

favorite
boolean Required

Enter true to favorite the contact, or false to remove the favorite.

Responses
200

OK

Success
{
  "success": true
}
object
success
boolean
400

Bad Request

Missing Favorite
{
  "success": false,
  "error": "must have required property 'favorite' [error-invalid-params]"
}
object
success
boolean
error
string
401

Unauthorized

Authorization Error
{
  "success": false,
  "error": "You must be logged in to do this."
}
object
success
boolean
error
string
403

Forbidden

Permission Error
{
  "success": false,
  "error": "User does not have the permissions required for this action",
  "errorType": "error-forbidden"
}
object
success
boolean
error
string
errorType
string
404

Not Found

Not Found
{
  "success": false,
  "error": "error-contact-not-found"
}
object
success
boolean
error
string