Create a domain-assigned macOS configuration
POST/config/macos/domain
Creates the macOS service account used for a domain.
domain_fqdn is required and must match a configured domain; only one configuration per domain is allowed. service_acct.svcUser and service_acct.svcPass are required. macOS accounts do not support key authentication. system_defaults must not be sent. Returns HTTP 200 with a plain-text confirmation. Accepts JSON or application/x-www-form-urlencoded bodies. Required role: admin or superadmin.
Request
Responses
- 200
- 400
- 401
- 403
- 422
Created.
Request validation failed.
No token, or the token is invalid or expired. The body is {message}: No auth token provided when no token is sent, otherwise the token check's message (jwt expired, jwt malformed, invalid signature, invalid token, jwt signature is required). Send Authorization: Bearer <token> exactly: the server drops the first seven characters of the header and reads the rest as the token, so a different scheme or an extra space fails. If Authorization is absent, the server reads a token field in the body, then a token query parameter, then x-access-token. Routes that validate query fields reject ?token= with 400 InvalidQuery.
The token's role is not allowed for this operation, or the token's scopes exclude the route
(Scope not allowed by token).
The request could not be processed, for example an id that is not a valid object id.