POST v1/Delivery/Repositories/{id}/Subscriptions
User roles allowed to make this request:
DomainAdministrator
Permissions required to make this request:
Repository.UpdatePlan
Repository.Read
Changes the subscription plan of a repository.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The repository Id. |
integer |
Required |
Body Parameters
The CreateRepositorySubscriptionModel
CreateRepositorySubscriptionModelName | Description | Type | Additional information |
---|---|---|---|
PlanId |
The plan Id that should be used for the new subscription. |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "PlanId": 1 }
application/xml, text/xml
Sample:
<CreateRepositorySubscriptionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models.Delivery"> <PlanId>1</PlanId> </CreateRepositorySubscriptionModel>
application/x-www-form-urlencoded
Sample:
PlanId=Int64
multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
Response Message
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |