PATCH api/GlassesPrescriptions

Activate/deactivate a glasses prescription.

Request Information

URI Parameters

None.

Body Parameters

Model used to activate/deactivate a glasses prescription.

GlassesPrescriptionPatchModel
NameDescriptionTypeAdditional information
ExternalId

Unique ID of the model in the integrating system (Required).

string

None.

Active

Indicates whether the glasses prescription is active or not.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "externalId": "sample string 1",
  "active": true
}

application/xml, text/xml

Sample:
<GlassesPrescriptionPatchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.GlassesPrescriptions">
  <Active>true</Active>
  <ExternalId>sample string 1</ExternalId>
</GlassesPrescriptionPatchModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GlassesPrescriptionPatchModel'.

Response Information

Resource Description

GlassesPrescriptionPatchModel
NameDescriptionTypeAdditional information
ExternalId

Unique ID of the model in the integrating system (Required).

string

None.

Active

Indicates whether the glasses prescription is active or not.

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "externalId": "sample string 1",
  "active": true
}

application/xml, text/xml

Sample:
<GlassesPrescriptionPatchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.GlassesPrescriptions">
  <Active>true</Active>
  <ExternalId>sample string 1</ExternalId>
</GlassesPrescriptionPatchModel>