API Methods
Account ...
Blogs ...
Bookings ...
CreditHistory ...
Dashboard ...
DirectCam ...
DirectChat ...
Email ...
FieldReport ...
Groups ...
HotLists ...
Interview ...
Lists ...
Movie ...
Newsfeed ...
PhoneChat ...
Pictures ...
Profile ...
Search ...
Tours ...
Webcam ...

Update Priceplans

This API operation updates a user's priceplans to access their private gallery.

URL / Endpoint

Need help with Postman?

PUT /v1/Pictures/UpdatePricePlans

PUT /v1/Groups/Pictures/UpdatePricePlans (See Group manager)

Request

PropertyTypeDescription
PricePlans array of aws:PricePlansInput Required. The price plan data.

Group manager

If the authenticated user is the manager of a group, the user can impersonate another member of the group. This allows the manager to perform tasks of other group members without having to authenticate as them.

The request can be build in the same way as the regular request, but targeted towards the Group manager endpoint. Additionally, it has the following extra parameters:

PropertyTypeDescription
UserID integer Required. The ID of a member in the group that will be impersonated for this request.

Request Information

HTTP Method / Verb

Parameters can be passed to this operation using the HTTP PUT method with serialized JSON in the request body.

Headers

The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.

Authentication

An Authorization header is required with every request and must contain the access_token of the user. More information can be found in the Access tokens page.

Scopes

This endpoint requires the following scope:

Scope
profile_gallery

Samples

PUT method

https://api-sandbox.adultwork.com/v1/Pictures/UpdatePricePlans

Authorization: bearer {your-access-token}
{
"PricePlans":
[
{
"PricePlanID" : 1,
"DurationID" : 1,
"Price" : 1.2
},
{ "PricePlanID" : 2, "DurationID" : 2, "Price" : 2.2 }
]
}

PUT method

https://api-sandbox.adultwork.com/v1/Groups/Pictures/UpdatePricePlans

Authorization: bearer {your-access-token}
{
"UserID": 123456,
"PricePlans":
[
{
"PricePlanID" : 1,
"DurationID" : 1,
"Price" : 1.2
},
{ "PricePlanID" : 2, "DurationID" : 2, "Price" : 2.2 }
]
}

Response

PropertyTypeDescription
  array of aws:PricePlans

The priceplans of the user.

Response Sample

The following example shows a sample returned by the API.

[
    {
        "PricePlanID": 1,
        "Duration": "24 Hours",
        "Price": 1.2
    },
    {
        "PricePlanID": 2,
        "Duration": "3 Days",
        "Price": 2.2
    }
]
<ArrayOfPicturePricePlan xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.Pictures">
    <PicturePricePlan>
        <Duration>24 Hours</Duration>
        <Price>1.2000</Price>
        <PricePlanID>1</PricePlanID>
    </PicturePricePlan>
    <PicturePricePlan>
        <Duration>3 Days</Duration>
        <Price>2.2000</Price>
        <PricePlanID>2</PricePlanID>
    </PicturePricePlan>
</ArrayOfPicturePricePlan>