{"type":"api","title":"Patch data gateway","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/13469849-14f5-3bf7-98fd-7e5caee7c1d5","info":{"title":"Crosswork Data Gateway Physical DG API - v1 (Deprecated)","description":"This document contains details of the Crosswork Data Gateway RESTful APIs that can be used for GET/Update operations of Data Gateways","version":"7.1.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"}},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/CDG/Deprecated/cdg_physical_dg_api_v1-overview.md"}},"swagger":"2.0","basePath":"/crosswork/dg-manager/v1","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Bearer Auth Token"}}},"spec":{"description":"when geo is enabled, site can be updated whose uuids are specified in the payload. \n Site update is allowed for Data gateways in Unassigned role (or) any role when system is in migration mode.","summary":"Patch data gateway","operationId":"PatchDataGateway","deprecated":true,"produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"Content-Type","in":"header","required":true,"type":"string","description":"application/json"},{"name":"Body","in":"body","required":true,"description":"Request payload to update site of data gateway","schema":{"title":"PatchDataGatewayRequest","example":{"enrollments":[{"duuid":"5fa2f708-fcc1-4e07-8754-58964c78ffb8","configData":{"site":"San Jose"}},{"duuid":"2bec92bc-eb72-4bf8-9d0b-f74e8c9a915d","configData":{"site":"New York"}}]},"type":"object","properties":{"enrollments":{"type":"array","items":{"title":"Patch DG Enrollment","example":{"duuid":"5fa2f708-fcc1-4e07-8754-58964c78ffb8","configData":{"site":"New York"}},"type":"object","properties":{"duuid":{"type":"string"},"configData":{"title":"PatchConfigData","example":{"site":"San Jose"},"type":"object","properties":{"site":{"type":"string"}},"required":["site"],"$$ref":"#/definitions/PatchConfigData"}},"required":["duuid","configData"],"$$ref":"#/definitions/PatchEnrollment"}}},"required":["enrollments"],"$$ref":"#/definitions/PatchDataGatewayRequest"}}],"responses":{"204":{"description":"OK"},"500":{"description":"Internal Server Error","schema":{"title":"","example":{"error":"geo mode must be enabled to update site for DG 5dd63ceb-3661-437b-9fc4-2372d0451042 ; physical DG uuid 2bec92bc-eb72-4bf8-9d0b-f74e8c9a915d not found in DB"},"type":"object","properties":{"error":{"type":"string"}},"$$ref":"#/definitions/DataGatewayErrorResponse"}}},"security":[],"__originalOperationId":"PatchDataGateway","method":"patch","path":"/dg"}}