changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "The single matching error, returned for a `code` lookup.",
+ "properties": {
+ "causes": {
+ "description": "Known conditions that trigger it.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "description": {
+ "description": "What the error means.",
+ "type": "string"
+ },
+ "docUrl": {
+ "description": "Microsoft Learn page covering this error.",
+ "format": "uri",
+ "type": "string"
+ },
+ "errorCode": {
+ "description": "Partner Center error code, e.g. \"900400\".",
+ "type": "string"
+ },
+ "httpStatus": {
+ "description": "HTTP status code the API returns with this error.",
+ "type": "number"
+ },
+ "relatedScenarios": {
+ "description": "Scenarios where this error commonly surfaces, resolved from ids to { id, title, docUrl }.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "docUrl": {
+ "description": "Microsoft Learn page documenting this operation.",
+ "type": "string"
+ },
+ "id": {
+ "description": "Scenario id to pass to pc_get_scenario or pc_generate_call.",
+ "type": "string"
+ },
+ "title": {
+ "description": "Human-readable name of the operation.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "docUrl"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "remediation": {
+ "description": "Concrete fix to apply.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "httpStatus",
+ "errorCode",
+ "description",
+ "causes",
+ "remediation",
+ "docUrl",
+ "relatedScenarios"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Every documented error with the requested status, returned for an `httpStatus` lookup.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "causes": {
+ "description": "Known conditions that trigger it.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "description": {
+ "description": "What the error means.",
+ "type": "string"
+ },
+ "docUrl": {
+ "description": "Microsoft Learn page covering this error.",
+ "format": "uri",
+ "type": "string"
+ },
+ "errorCode": {
+ "description": "Partner Center error code, e.g. \"900400\".",
+ "type": "string"
+ },
+ "httpStatus": {
+ "description": "HTTP status code the API returns with this error.",
+ "type": "number"
+ },
+ "relatedScenarios": {
+ "description": "Scenario ids where this error commonly surfaces.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "remediation": {
+ "description": "Concrete fix to apply.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "httpStatus",
+ "errorCode",
+ "description",
+ "causes",
+ "remediation",
+ "docUrl"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ ],
+ "description": "The result payload. Present only when `ok` is true."
+ },
+ "error": {
+ "description": "Human-readable reason the call failed. Present only when `ok` is false.",
+ "type": "string"
+ },
+ "ok": {
+ "description": "True when the call succeeded and `data` is populated; false when `error` explains why not.",
+ "type": "boolean"
+ },
+ "suggestions": {
+ "description": "Valid values to retry with, returned alongside `error` when the requested identifier was not found.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+}