completed attachment api