v1

latestOpenAPI 3.1.02026-07-2616636641.7 KB

Update Sites

This API call updates a site with a new URL and/or title, using the "Site ID". Please note that the "Site ID cannot be changed.

put/v1/site/{SiteID}

Path parameters

SiteIDinteger required

ID of the Site

Request body

Idstring required

The id of the Site. Cannot be changed.

Titlestring required

Update the friendly name title if needed

Urlstring required

Update the URL in format https://path of URL if needed

IsDeletedboolean

If want to delete, set to true

Response

200

Idinteger
Titlestring
Urlstring
{"stackTrail":"paths:/v1/site/{SiteID}:put:responses:200:content:application/json:schema:properties:NetworkMargin","oasType":"schema","type":"unknown"}
PublisherAccountIdinteger
IsDeletedboolean

Example response

{
  "Id": 12345,
  "Title": "New Title",
  "Url": "http://www.example.com",
  "PublisherAccountId": 1234
}