Remove a friend
Ends a friendship by its id.
DELETE
/v1/friends/{friendshipId}
const url = 'https://api.shiftsync.app/v1/friends/1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.shiftsync.app/v1/friends/1 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”friendshipId
required
number
Responses
Section titled “Responses”Deletion result
Media typeapplication/json
object
success
required
boolean
Example
{ "success": true}