api/v1/sims/{id}/togglelocationconsent
Method: POST https://simportal-api-staging.azurewebsites.net/api/v1/sims/{id}/togglelocationconsent
Summary
Toggles the consent status for retrieving location details of the SIM. By granting consent to location details, you are confirming that you have been given this consent by the end-user.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The Id(UUID) of the SIM |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
ToggleLocationConsentResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| SimId | globally unique identifier |
None. |
|
| NewConsentValue | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"SimId": "af2d68f0-480a-479f-8b48-7f0bcc881079",
"NewConsentValue": true
}
application/xml, text/xml
Sample:
<ToggleLocationConsentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimPortalApi.Models.SIMs"> <NewConsentValue>true</NewConsentValue> <SimId>af2d68f0-480a-479f-8b48-7f0bcc881079</SimId> </ToggleLocationConsentResponse>