Solarware API-Dokumentation
YAML herunterladen

Deal aktualisieren

put /api/v1/deals/{id}

Sicherheit

ApiKeyAuth

Parameter

Name In Typ Details
id path integer Pflicht Ressourcen-ID

Request-Body Pflicht

application/json

Beispiel

{
    "name": "Solar Project Mustermann",
    "tags_id": 2
}

Schema

{
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        },
        "tags_id": {
            "type": "integer",
            "nullable": true
        },
        "contacts_id": {
            "type": "integer",
            "nullable": true
        },
        "partners_id": {
            "type": "integer",
            "nullable": true
        },
        "solar_sites_id": {
            "type": "integer",
            "nullable": true
        },
        "is_active": {
            "type": "boolean"
        },
        "started_on": {
            "type": "string",
            "format": "date",
            "nullable": true
        }
    }
}

Antworten

200 Deal aktualisiert

application/json

{
    "allOf": [
        {
            "title": "API envelope",
            "type": "object",
            "properties": {
                "success": {
                    "type": "boolean"
                },
                "message": {
                    "type": "string",
                    "nullable": true
                },
                "errors": {
                    "nullable": true
                },
                "meta": {
                    "type": "object",
                    "nullable": true,
                    "additionalProperties": true
                }
            }
        },
        {
            "type": "object",
            "properties": {
                "data": {
                    "title": "Deal",
                    "type": "object",
                    "required": [
                        "id",
                        "is_active"
                    ],
                    "properties": {
                        "id": {
                            "type": "integer"
                        },
                        "deals_unique_id": {
                            "type": "string",
                            "nullable": true
                        },
                        "name": {
                            "type": "string",
                            "nullable": true
                        },
                        "is_active": {
                            "type": "boolean"
                        },
                        "deal_status": {
                            "type": "string",
                            "nullable": true
                        },
                        "pipelines_id": {
                            "type": "integer",
                            "nullable": true
                        },
                        "pipeline_name": {
                            "type": "string",
                            "nullable": true
                        },
                        "partners_id": {
                            "type": "integer",
                            "nullable": true
                        },
                        "partner_name": {
                            "type": "string",
                            "nullable": true
                        },
                        "contacts_id": {
                            "type": "integer",
                            "nullable": true
                        },
                        "contact_display_name": {
                            "type": "string",
                            "nullable": true
                        },
                        "phase_id": {
                            "type": "integer",
                            "nullable": true
                        },
                        "phase_name": {
                            "type": "string",
                            "nullable": true
                        },
                        "tags_id": {
                            "type": "integer",
                            "nullable": true
                        },
                        "solar_sites_id": {
                            "type": "integer",
                            "nullable": true
                        },
                        "started_on": {
                            "type": "string",
                            "nullable": true
                        },
                        "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true
                        },
                        "updated_at": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true
                        }
                    }
                }
            }
        }
    ]
}
401 Missing or invalid API key

application/json

{
    "type": "object",
    "properties": {
        "success": {
            "type": "boolean",
            "example": false
        },
        "message": {
            "type": "string",
            "example": "Missing API key (X-Api-Key)"
        }
    }
}
404 Resource not found

application/json

{
    "title": "API envelope",
    "type": "object",
    "properties": {
        "success": {
            "type": "boolean"
        },
        "message": {
            "type": "string",
            "nullable": true
        },
        "errors": {
            "nullable": true
        },
        "meta": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true
        }
    }
}
422 Validation failed

application/json

{
    "title": "API envelope",
    "type": "object",
    "properties": {
        "success": {
            "type": "boolean"
        },
        "message": {
            "type": "string",
            "nullable": true
        },
        "errors": {
            "nullable": true
        },
        "meta": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true
        }
    }
}