Replaces the specified :term:`Profile` with the one in the request payload
Auth. Required: | Yes |
---|---|
Roles Required: | "admin" or "operations" |
Permissions Required: | PROFILE:UPDATE, PROFILE:READ |
Response Type: | Object |
Name | Description |
---|---|
ID | The :ref:`profile-id` of the :term:`Profile` being modified |
cdn: | The integral, unique identifier of the :ref:`profile-cdn` to which this :term:`Profile` will belong |
---|---|
description: | The :term:`Profile`'s new :ref:`profile-description` |
name: | The :term:`Profile`'s new :ref:`profile-name` |
routingDisabled: | The :term:`Profile`'s new :ref:`profile-routing-disabled` setting |
type: | The :term:`Profile`'s new :ref:`profile-type` Warning Changing this will likely break something, be VERY careful when modifying this value |
PUT /api/5.0/profiles/16 HTTP/1.1
Host: trafficops.infra.ciab.test
User-Agent: curl/7.62.0
Accept: */*
Cookie: mojolicious=...
Content-Length: 125
Content-Type: application/json
{
"name": "test",
"description": "A test profile for API examples",
"cdn": 2,
"type": "UNK_PROFILE",
"routingDisabled": true
}
cdn: | The integral, unique identifier of the :ref:`profile-cdn` to which this :term:`Profile` belongs |
---|---|
cdnName: | The name of the :ref:`profile-cdn` to which this :term:`Profile` belongs |
description: | |
id: | |
lastUpdated: | The date and time at which this :term:`Profile` was last updated, in RFC 3339 format .. versionchanged:: 5.0 Prior to version 5.0 of the API, this field was in :ref:`non-rfc-datetime`. |
name: | |
routingDisabled: | The :term:`Profile`'s :ref:`profile-routing-disabled` setting |
type: |
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Set-Cookie, Cookie
Access-Control-Allow-Methods: POST,GET,OPTIONS,PUT,DELETE
Access-Control-Allow-Origin: *
Content-Type: application/json
Set-Cookie: mojolicious=...; Path=/; Expires=Mon, 18 Nov 2019 17:40:54 GMT; Max-Age=3600; HttpOnly
Whole-Content-Sha512: Pnf+G9G3/+edt4b8PVsyGZHsNzaFEgphaGSminjRlRmMpWtuLAA20WZDUo3nX0QO81c2GCuFuEh9uMF2Vjeppg==
X-Server-Name: traffic_ops_golang/
Date: Fri, 07 Dec 2018 21:45:06 GMT
Content-Length: 251
{ "alerts": [
{
"text": "profile was updated.",
"level": "success"
}
],
"response": {
"id": 16,
"lastUpdated": "2023-08-17T09:06:18-06:00",
"name": "test",
"description": "A test profile for API examples",
"cdnName": null,
"cdn": 2,
"routingDisabled": true,
"type": "UNK_PROFILE"
}}
Allows user to delete a :term:`Profile`.
Auth. Required: | Yes |
---|---|
Roles Required: | "admin" or "operations" |
Permissions Required: | PROFILE:DELETE, PROFILE:READ |
Response Type: | undefined |
Name | Description |
---|---|
ID | The :ref:`profile-id` of the :term:`Profile` being deleted |
DELETE /api/5.0/profiles/16 HTTP/1.1
Host: trafficops.infra.ciab.test
User-Agent: curl/7.62.0
Accept: */*
Cookie: mojolicious=...
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Set-Cookie, Cookie
Access-Control-Allow-Methods: POST,GET,OPTIONS,PUT,DELETE
Access-Control-Allow-Origin: *
Content-Type: application/json
Set-Cookie: mojolicious=...; Path=/; Expires=Mon, 18 Nov 2019 17:40:54 GMT; Max-Age=3600; HttpOnly
Whole-Content-Sha512: HNmJkZaNW9yil08/3TnqZ5FllH6Rp+jgp3KI46FZdojLYcu+8jEhDLl1okoirdrHyU4R1c3hjCI0urN7PVvWDA==
X-Server-Name: traffic_ops_golang/
Date: Fri, 07 Dec 2018 21:55:33 GMT
Content-Length: 62
{ "alerts": [
{
"text": "profile was deleted.",
"level": "success"
}
]}