POST api/groups/{groupid}/drugprofiles/{drugprofileid}/drugprofilegpis/batch/delete?deleteAll={deleteAll}

Deletes multiple drug profile GPI records at the group level. If deleteAll=true, all GPIs are deleted for the specified drug profile. If deleteAll=false, only the provided GenericProductIdentifiers are deleted. Returns 204 No Content on success.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
groupid

The group ID associated with the drug profile.

integer

Required

drugprofileid

The drug profile ID associated with the GPIs.

integer

Required

deleteAll

A boolean indicating whether to delete all GPIs (true) or only the provided GPIs (false).

boolean

Default value is False

Body Parameters

A list of GenericProductIdentifiers to delete if deleteAll is false.

Collection of string

Request Formats

application/json, text/json, application/json-patch+json

Sample:
[
  "sample string 1",
  "sample string 2"
]

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

204 No Content on success.

None.