Form

Форма для создания сетки

post
Authorizations
Responses
200
OK
post
POST /op/api/v3/grids/form HTTP/1.1
Host: example.u-meteor.ru
Authorization: Basic username:password
Accept: */*
200

OK

No content

Форма обновления сетки

post
Authorizations
Path parameters
idintegerRequired

Идентификатор изменяемой сетки

Example: 1
Responses
200
OK
application/hal+json
Responseobject
post
POST /op/api/v3/grids/{id}/form HTTP/1.1
Host: example.u-meteor.ru
Authorization: Basic username:password
Accept: */*
{
  "_embedded": {
    "payload": {
      "columnCount": 5,
      "rowCount": 6,
      "widgets": [
        {
          "_type": "GridWidget",
          "endColumn": 3,
          "endRow": 8,
          "identifier": "time_entries_current_user",
          "startColumn": 1,
          "startRow": 1
        },
        {
          "_type": "GridWidget",
          "endColumn": 5,
          "endRow": 8,
          "identifier": "news",
          "startColumn": 4,
          "startRow": 3
        },
        {
          "_type": "GridWidget",
          "endColumn": 6,
          "endRow": 3,
          "identifier": "documents",
          "startColumn": 3,
          "startRow": 1
        }
      ]
    },
    "schema": {
      "_links": {},
      "_type": "Schema",
      "columnCount": {
        "hasDefault": false,
        "name": "Number of columns",
        "required": true,
        "type": "Integer",
        "writable": true
      },
      "createdAt": {
        "hasDefault": false,
        "name": "Created on",
        "required": true,
        "type": "DateTime",
        "writable": false
      },
      "id": {
        "hasDefault": false,
        "name": "ID",
        "required": true,
        "type": "Integer",
        "writable": false
      },
      "rowCount": {
        "hasDefault": false,
        "name": "Number of rows",
        "required": true,
        "type": "Integer",
        "writable": true
      },
      "scope": {
        "_links": {},
        "hasDefault": false,
        "name": "Page",
        "required": true,
        "type": "Href",
        "writable": false
      },
      "updatedAt": {
        "hasDefault": false,
        "name": "Updated on",
        "required": true,
        "type": "DateTime",
        "writable": false
      },
      "widgets": {
        "_links": {},
        "hasDefault": false,
        "name": "Widgets",
        "required": true,
        "type": "[]GridWidget",
        "writable": true
      }
    },
    "validationErrors": {
      "widgets": {
        "_embedded": {
          "errors": [
            {
              "_embedded": {
                "details": {
                  "attribute": "widgets"
                }
              },
              "_type": "Error",
              "errorIdentifier": "urn:meteor-org:api:v3:errors:PropertyConstraintViolation",
              "message": "Widgets is outside of the grid."
            },
            {
              "_embedded": {
                "details": {
                  "attribute": "widgets"
                }
              },
              "_type": "Error",
              "errorIdentifier": "urn:meteor-org:api:v3:errors:PropertyConstraintViolation",
              "message": "Widgets is outside of the grid."
            }
          ]
        },
        "_type": "Error",
        "errorIdentifier": "urn:meteor-org:api:v3:errors:MultipleErrors",
        "message": "Multiple field constraints have been violated."
      }
    }
  },
  "_links": {
    "self": {
      "href": "/api/v3/grids/2/form",
      "method": "post"
    },
    "validate": {
      "href": "/api/v3/grids/2/form",
      "method": "post"
    }
  },
  "_type": "Form"
}