{"type":"api","title":"Create MSP Customer","meta":{"id":"/apps/pubhub/media/legacy-umbrella-api/bf58de618cbb72dda8f39b0414ce94c0a15cd467/749b3a73-c1a2-3c03-8a59-0be6ab11a602","swagger":"2.0","info":{"title":"Service Providers","version":"1.0.0","description":"Service Providers and Managed Service Providers (MSPs)","contact":{"name":"Cloud Security Developer Community"}},"host":"management.api.umbrella.com","basePath":"/v1","schemes":["https"],"securityDefinitions":{"http":{"type":"basic"}},"security":[{"http":[]}],"x-parser-conf":{"httpBasic":{"username":"","password":""},"overview":{"markdownPath":"legacy/management/service-providers-overview.md"},"meta":{"useProxy":true}}},"spec":{"tags":["Managed Service Providers"],"description":"Create an MSP customer","summary":"Create MSP Customer","operationId":"createMSPCustomer","parameters":[{"name":"mspId","type":"integer","description":"The ID of the Managed Service Provider (MSP)","in":"path","required":true,"$$ref":"#/parameters/managedProviderIdParam"},{"schema":{"properties":{"customerName":{"type":"string","description":"The name of the customer's organization","minLength":1,"maxLength":255},"seats":{"type":"integer","minimum":1,"description":"The number of users"}},"type":"object","required":["customerName","seats"]},"description":"The MSP customer that you want to create","name":"payload","in":"body"}],"responses":{"200":{"description":"Create an MSP customer","schema":{"type":"object","properties":{"customerId":{"type":"integer","description":"The customer ID"},"customerName":{"type":"string","description":"The name of the customer's organization"},"seats":{"type":"integer","minimum":1,"description":"The number of users"}},"required":["customerId","customerName","seats"],"example":{"customerId":1232353,"customerName":"Cisco","seats":100},"$$ref":"#/definitions/MspCustomer"}},"400":{"description":"Bad Request","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":400,"description":"the http error code returned"},"error":{"type":"string","example":"Validation Error","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"},"validationErrors":{"type":"object","properties":{"someProperty":{"type":"string","example":"must not be empty","description":"the name of the property failing validation."}}}}},"$$ref":"#/responses/BadRequest"},"401":{"description":"Unauthorized","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":401,"description":"The authorization header is missing or the token is unauthorized"},"error":{"type":"string","example":"Unauthorized","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/Unauthorized"},"403":{"description":"Forbidden","schema":{"type":"object","minProperties":1,"required":["message"],"properties":{"statusCode":{"type":"integer","example":403,"description":"the http error code returned"},"error":{"type":"string","example":"Forbidden, Invalid authentication credentials","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/Forbidden"},"404":{"description":"Not Found","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":404,"description":"the http error code returned"},"error":{"type":"string","example":"Not Found","description":"A resource that is specified in the URL was not found."},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/NotFound"},"500":{"description":"Internal Server Error","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":500,"description":"the http error code returned"},"error":{"type":"string","example":"Internal Server Error","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/ServerError"}},"__originalOperationId":"createMSPCustomer","consumes":["application/json"],"produces":["application/json"],"security":[{"http":[]}],"method":"post","path":"/msps/{mspId}/customers"}}