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

NameDescriptionTypeAdditional information
id

The repository Id.

integer

Required

Body Parameters

The CreateRepositorySubscriptionModel

CreateRepositorySubscriptionModel
NameDescriptionTypeAdditional 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

AcceptedResult, if succeeded. The appropriate exception in case of failure. BadRequest in case of error.

Response Message

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.