1
0
Fork 0
mirror of synced 2024-06-28 11:10:46 +12:00

Update app/controllers/api/functions.php

Co-authored-by: Jake Barnby <jakeb994@gmail.com>
This commit is contained in:
Matej Bačo 2022-08-30 09:27:44 +02:00 committed by GitHub
parent ad0e856e1b
commit 883207240c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1311,7 +1311,7 @@ App::post('/v1/functions/:functionId/variables')
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_VARIABLE)
->param('functionId', null, new UID(), 'Function unique ID.', false)
->param('key', null, new Text(255), 'Variable key. Max length: 255 chars.', false)
->param('key', null, new Text(Database::LENGTH_KEY), 'Variable key. Max length: ' . Database::LENGTH_KEY . ' chars.', false)
->param('value', null, new Text(16384), 'Variable value. Max length: 16384 chars.', false)
->inject('response')
->inject('dbForProject')