{
    "title": "set_api_key reply v1",
    "description": "",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://api.nextpertise.nl/schemas/user/set_api_key_reply_v1.json",
    "type": "object",
    "properties": {
        "uuid": {
            "type": "string"
        },
        "apikey": {
            "type": "string"
        },
        "created_at": {
            "title": "Datetime",
            "description": "Datetime in UTC format YYYY-MM-DDThh:mm:ssZ",
            "type": [
                "string",
                "null"
            ],
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
        },
        "last_used_at": {
            "oneOf": [
                {
                    "title": "Datetime",
                    "description": "Datetime in UTC format YYYY-MM-DDThh:mm:ssZ",
                    "type": [
                        "string",
                        "null"
                    ],
                    "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
                },
                {
                    "type": [
                        "null",
                        "one of"
                    ]
                }
            ],
            "type": "one of"
        },
        "rate_limit": {
            "type": "integer"
        },
        "total_requests": {
            "type": "integer"
        },
        "description": {
            "type": [
                "string",
                "null"
            ]
        },
        "referers": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "minItems": 1
        }
    },
    "additionalProperties": false,
    "required": [
        "uuid",
        "apikey",
        "created_at",
        "last_used_at",
        "rate_limit",
        "total_requests",
        "description",
        "referers"
    ]
}