Dear
Jörg Steffens,
When I made another profile with
complete access, I was able to resolve the aforementioned issue. Another
issue, though, is that I receive the following error when I set the
"runCommand" argument to "run" and begin running via the REST API.
Additionally, I'm not sure how to set up the "Create Schedule" function
when passing JSON from a REST API.
Would you please check my configure files?
--------------------------------
models.py:
class scheduleResource(BaseModel):
name: str = Body(..., title="Schedule name")
description: Optional[str] = Body(None, title="Schedule Description")
run: Optional[List[str]] = Body(
None,
title="A list of run statements",
example=["Full 1st Sat at 12:00", "Incremental Sun-Fri at 11:00"],
)
enabled: Optional[bareosBool] = Body(
None, title="Schedule enabled? Yes, if unset", example="no"
)
---------------------------------------------
openapi.json:
"run": {
"title": "A list of run statements",
"type": "array",
"items": {
"type": "string"
},
"example": [
"Full 1st Sat at 12:00",
"Incremental Sun-Fri at 11:00"
]
},
--------------------------------------------------------
Error:
{
"message": "Could not add schedule with command 'configure add schedule name=Test description=Test123 run=FullMondayat17:50 enabled=yes'. Message: 'failed: configure error: Time must be preceded by keyword AT.\nconfigure error: unexpected token 105 BCT_UNQUOTED_STRING in resource definition\nconfigure error: ParseAllTokens failed.\n'"
}
Best Regard,
Minh Hoa