{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new access key for a serverless functions namespace. \nThe access key can be used to authenticate requests to the namespace's functions.\nThe secret key is only returned once upon creation.\n\nTo create an access key, send a POST request to `/v2/functions/namespaces/{namespace_id}/keys`.\n","properties":{"path":{"type":"object","properties":{"namespace_id":{"type":"string","examples":["fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],"description":"The ID of the namespace to be managed."}},"required":["namespace_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/access_key_create_request","examples":[{"name":"my-function-access-key"}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"access_key_create_request":{"type":"object","properties":{"name":{"type":"string","description":"The access key's name.","examples":["my-function-access-key"]},"expires_in":{"type":"string","description":"The duration after which the access key expires, specified as a human-readable duration string in the format `<int>h` (hours) or `<int>d` (days). Minimum value is `1h`. If omitted, the key will never expire.","examples":["7d"]}},"required":["name"]}}},"name":"Create a Namespace Access Key","id":"digitalocean.functionsaccesskey_create","example":{"path":{"namespace_id":"fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},"body":{"name":"my-function-access-key"}},"maxRequests":1,"summary":false}}